package com.newland.boss1.zxy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : zhangxuyuan
 * @Project: springcloudhuaweisample
 * @Package com.newland.boss1.zxy
 * @date Date : 2021年02月19日 13:53
 */
@RestController
public class OrderController {

    @Autowired
    private FeignService feignService;

    @GetMapping("/product")
    public String getPrice(@RequestParam("id")String id)
    {
        return feignService.getPrice(id);
    }
}
